Optimal. Leaf size=50 \[ \frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{4} b c^3 x+\frac{1}{4} b c^4 \tan ^{-1}\left (\frac{x}{c}\right )+\frac{1}{12} b c x^3 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0309079, antiderivative size = 50, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5033, 263, 302, 203} \[ \frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )-\frac{1}{4} b c^3 x+\frac{1}{4} b c^4 \tan ^{-1}\left (\frac{x}{c}\right )+\frac{1}{12} b c x^3 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 263
Rule 302
Rule 203
Rubi steps
\begin{align*} \int x^3 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right ) \, dx &=\frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{4} (b c) \int \frac{x^2}{1+\frac{c^2}{x^2}} \, dx\\ &=\frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{4} (b c) \int \frac{x^4}{c^2+x^2} \, dx\\ &=\frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{4} (b c) \int \left (-c^2+x^2+\frac{c^4}{c^2+x^2}\right ) \, dx\\ &=-\frac{1}{4} b c^3 x+\frac{1}{12} b c x^3+\frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{4} \left (b c^5\right ) \int \frac{1}{c^2+x^2} \, dx\\ &=-\frac{1}{4} b c^3 x+\frac{1}{12} b c x^3+\frac{1}{4} x^4 \left (a+b \tan ^{-1}\left (\frac{c}{x}\right )\right )+\frac{1}{4} b c^4 \tan ^{-1}\left (\frac{x}{c}\right )\\ \end{align*}
Mathematica [A] time = 0.0103591, size = 55, normalized size = 1.1 \[ \frac{a x^4}{4}-\frac{1}{4} b c^3 x-\frac{1}{4} b c^4 \tan ^{-1}\left (\frac{c}{x}\right )+\frac{1}{12} b c x^3+\frac{1}{4} b x^4 \tan ^{-1}\left (\frac{c}{x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 46, normalized size = 0.9 \begin{align*}{\frac{{x}^{4}a}{4}}+{\frac{b{x}^{4}}{4}\arctan \left ({\frac{c}{x}} \right ) }+{\frac{b{c}^{4}}{4}\arctan \left ({\frac{x}{c}} \right ) }+{\frac{bc{x}^{3}}{12}}-{\frac{b{c}^{3}x}{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.47929, size = 61, normalized size = 1.22 \begin{align*} \frac{1}{4} \, a x^{4} + \frac{1}{12} \,{\left (3 \, x^{4} \arctan \left (\frac{c}{x}\right ) +{\left (3 \, c^{3} \arctan \left (\frac{x}{c}\right ) - 3 \, c^{2} x + x^{3}\right )} c\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.20965, size = 101, normalized size = 2.02 \begin{align*} -\frac{1}{4} \, b c^{3} x + \frac{1}{12} \, b c x^{3} + \frac{1}{4} \, a x^{4} - \frac{1}{4} \,{\left (b c^{4} - b x^{4}\right )} \arctan \left (\frac{c}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.827307, size = 46, normalized size = 0.92 \begin{align*} \frac{a x^{4}}{4} - \frac{b c^{4} \operatorname{atan}{\left (\frac{c}{x} \right )}}{4} - \frac{b c^{3} x}{4} + \frac{b c x^{3}}{12} + \frac{b x^{4} \operatorname{atan}{\left (\frac{c}{x} \right )}}{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16115, size = 81, normalized size = 1.62 \begin{align*} -\frac{1}{8} \, b c^{4} i \log \left (i x + c\right ) + \frac{1}{8} \, b c^{4} i \log \left (-i x + c\right ) + \frac{1}{4} \, b x^{4} \arctan \left (\frac{c}{x}\right ) - \frac{1}{4} \, b c^{3} x + \frac{1}{12} \, b c x^{3} + \frac{1}{4} \, a x^{4} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]